<?php
namespace app\common\model;

use think\Model;

class SscUsClass extends Model
{
    protected function initialize()
    {
        parent::initialize();
    }
    /**
     * 会员查询
     * @param unknown $where
     * @param string $order
     */
    public function HuiYuan($fileds,$where,$order,$limit)
    {
        return SscUsClass::name('us_class')->where($where)->order($order)->limit($limit)->select()->toArray();
    }
    /**
     * 会员添加
     * @param unknown $where
     * @param string $order
     */
    public function HuiYuanTian($zhiduan)
    {

        return SscUsClass::name('us_class')->insert($zhiduan);;
    }
    /**
     * 会员删除
     * @param unknown $where
     * @param string $order
     */
    public function HuiYuanDel($where)
    {

        return SscUsClass::name('us_class')->where($where)->delete();;
    }
    /**
     * 会员修改
     * @param unknown $where
     * @param string $order
     */
    public function HuiYuangai($where,$setzhiduan)
    {
        return SscUsClass::name('us_class')->where($where)->update($setzhiduan);
    }
}